@charset "utf-8";

body{
    background-image: url(../img/bg1.jpg);
    background-size: cover;
}

.all_btn{
    margin-left: 15%;
    margin-top: 10%;
    .btn{
        margin-bottom: 20px;
    }
}

#card_game{
    //游戏界面
    #game_show{
        width: 400px;
        background-color: rgba(11,11,11,0.3);
        position: absolute;
        left: 50%;
        top: 9vh;
        transform: translateX(-50%);
        //头部步数部分
        .step_number{
            width: 100%;
            height: 100px;
            #step{
                font-size: 30px;
                color: white;
                text-align: center;
                display: inline-block;
                height: 50px;
                line-height: 50px;
                padding-top: 10px;
            }
            #score{
                font-size: 30px;
                color: black;
                text-align: center;
                display: inline-block;
                height: 30px;
                line-height: 30px;
                color: white;
            }
        }
        //下面游戏玩的部分
        .play{
            width: 90%;
            margin-left: 5%;
            .row{
                margin-bottom: 90px;
            }
            .square{
                text-align: center;
                transform-style: preserve-3d;
                position: relative;
                transition: all 0.25s;
                transform-origin:center;
                transform: scale(1,1);
                .card{
                    height: 80px;
                    width: 80px;
                    border-radius: 10px;
                    margin-bottom: 5px;
                    margin-top: 5px;
                    margin-left: 8px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    backface-visibility: hidden;
                    transform-origin: center center;
                    img{
                        height: 80px;
                        width: 80px;
                    }
                }
                .front{
                    background-color: rgb(243,244,133);
                    transform: rotateY(0deg);
                    animation: none;
                }
                .back{
                    background-color: white;
                    transform: rotateY(-180deg);
                }
                &:hover .front{
                    cursor: pointer;
                }
                &:hover .back{
                    cursor: pointer;
                }
                @keyframes frontplay{
                    0%{transform:  rotateY(0deg);}
                    
                    100%{transform:  rotateY(-180deg);}
                }
                @keyframes backplay{
                    0%{transform:  rotateY(180deg);}
                    
                    100%{transform: rotateY(0deg);}
                }
            }
        }
    }
}
